package com.dingqb.ndkbase;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = findViewById(R.id.sample_text);
        tv.setText(new LocalNative().stringFromJNI());
        tv.setText(new LocalNative().stringFromJNI2());

        int v1 = 11;
        int v2 = 22;
        Log.e("dingqb--", "initView: ==" + new LocalNative().getAuthValue(v1, v2));

    }


    public void pointer(View view) {

        new LocalNative().stringFromJNI();
    }
}
